// 简介
import { UserInfoEditMixins, UserInfoUpdateMixins } from '../../../../behaviors/page';

Page({
    mixins: [UserInfoEditMixins, UserInfoUpdateMixins],
    data: {
        desc: '',
    },
    onLoad: function (options) {
        this.setData({
            desc: this.data.userInfo.intro,
        });
    },
    onDescChange: function (event) {
        this.setData({
            desc: event.detail.value,
        });
    },
    // 保存简介
    saveDesc: async function () {
        console.log('DescChange => 保存简介', this.data.desc);
        await this.userInfoUpdataAction({
            intro: this.data.desc,
        });
    },
})